﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace AlbumArtOrganizer.Model
{
    public abstract class CoverImage : ICoverImage, INotifyPropertyChanged
    {
        public abstract bool Exists
        {
            get;
        }

        public abstract System.Windows.Media.Imaging.BitmapImage Image
        {
            get;
        }

        public abstract int PixelWidth
        {
            get;
        }

        public abstract int PixelHeight
        {
            get;
        }

        public event PropertyChangedEventHandler PropertyChanged;

        public abstract System.Windows.Media.Imaging.BitmapImage ThumbnailImage
        {
            get;
        }

        protected void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
